/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2020-03-31 17:46:58
 * @LastEditors: kl2018
 * @LastEditTime: 2020-07-01 19:28:01
 */
import React, { Component } from 'react';
import * as allStore from '../stores';
import { Provider } from 'mobx-react';
import { WeaLocaleProvider } from 'ecCom';

// import InnerChangeComp from "../components/docWorkflow/InnerChangeComponent";
import PortalElement from '../components/portalElement';


// class OdocInnerChangeComp extends Component {
//   componentDidMount() {
//     WeaLocaleProvider.getLocaleLabel.bind(this, 'odoc');
//   }
//   render() {
//     return (
//       <Provider {...allStore}>
//         <InnerChangeComp {...this.props} />
//       </Provider>
//     )
//   }
// }

class OdocPortalElement extends Component {
  componentDidMount() {
    WeaLocaleProvider.getLocaleLabel.bind(this, 'odoc');
  }
  render() {
    return (
      <Provider ecId={`${this && this.props && this.props.ecId || ''}_Provider@o3s9pf`} {...allStore}>
        <PortalElement ecId={`${this && this.props && this.props.ecId || ''}_PortalElement@jpnuce`} {...this.props} />
      </Provider>
    );
  }
}

export {
  // OdocInnerChangeComp,
  OdocPortalElement,
};
